import { create } from 'zustand'

export const useActiveMenuNamePath = create(() => ({ namePath: null as string[] | null }))

export const setActiveMenuNamePath = (namePath: string[] | null): void => {
  useActiveMenuNamePath.setState({ namePath })
}
